package com.itheima.service.imple;

import com.itheima.dao.imple.UserDao;
import com.itheima.service.UserService;
import com.itheima.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("userService")
public class UserServiceImpl implements UserService{
    @Autowired//自动引入依赖
    UserDao userDao;
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
   @Override
   public boolean login(String username, String password) {
        return userDao.login(username, password);
   }
}
